package com.ruanyun.modular.admin.service;

import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.ruanyun.base.pojo.page.LayuiPageInfo;
import com.ruanyun.modular.admin.entity.TBasicinfo;
import com.ruanyun.modular.admin.model.params.TBasicinfoParam;
import com.ruanyun.modular.admin.model.result.TBasicinfoResult;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 基本信息表 服务类
 * </p>
 *
 * @author zs
 * @since 2021-04-23
 */
public interface TBasicinfoService extends IService<TBasicinfo> {

    /**
     * 新增
     *
     * @author zs
     * @Date 2021-04-23
     */
    ResponseData add(TBasicinfoParam param);

    /**
     * 删除
     *
     * @author zs
     * @Date 2021-04-23
     */
    void delete(TBasicinfoParam param);

    /**
    * 删除
    * @param id
    * @return
    */
    ResponseData updateDelFlagById(Long id);

    /**
     * 更新
     *
     * @author zs
     * @Date 2021-04-23
     */
    ResponseData update(TBasicinfoParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zs
     * @Date 2021-04-23
     */
    TBasicinfoResult findBySpec(TBasicinfoParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zs
     * @Date 2021-04-23
     */
    List<TBasicinfoResult> findListBySpec(TBasicinfoParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zs
     * @Date 2021-04-23
     */
     LayuiPageInfo findPageBySpec(TBasicinfoParam param);

     /**
     * 启用
     *
     * @param id
     * @return
     */
     ResponseData enableById(Long id);

     /**
     * 禁用
     *
     * @param id
     * @return
     */
     ResponseData disableById(Long id);


     List<TBasicinfo> getList();

     TBasicinfoResult getDetail(Integer id);




}
